<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>未来之窗粮油蔬果批发销售单</title>
    <style>
        body {
            font-family: SimSun, "宋体", serif;
            line-height: 1.5;
            padding: 20px;
        }
        .invoice-container {
            max-width: 800px;
            margin: 0 auto;
            border: 1px solid #ccc;
            padding: 30px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            position: relative; /* 增加相对定位，作为二维码的容器 */
        }
        .header {
            text-align: center;
            margin-bottom: 30px;
        }
        .title {
            font-size: 26px;
            font-weight: bold;
            margin-bottom: 20px;
            color: #2c3e50;
        }
        .qr-code {
            position: absolute; /* 绝对定位 */
            right: 30px;       /* 距离右侧30px */
            bottom: 80px;      /* 距离底部80px */
            width: 100px;
            height: 100px;
            border: 1px dashed #666;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
        }
        .qr-text {
            position: absolute; /* 绝对定位 */
            right: 30px;        /* 与二维码右对齐 */
            bottom: 50px;       /* 位于二维码下方 */
            width: 100px;       /* 与二维码同宽 */
            text-align: center;
            color: #34495e;
        }
        .info-row {
            margin-bottom: 15px;
            overflow: hidden;
            padding: 5px 0;
        }
        .info-item {
            float: left;
            width: 50%;
            font-size: 15px;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }
        th, td {
            border: 1px solid #333;
            padding: 10px 5px;
            text-align: center;
        }
        th {
            background-color: #f8f9fa;
            font-weight: bold;
        }
        .total-row {
            font-weight: bold;
            background-color: #f1f8e9;
        }
        .footer {
            margin-top: 30px;
            font-size: 14px;
            line-height: 1.8;
            padding-bottom: 120px; /* 增加底部 padding，避免内容被二维码遮挡 */
        }
        .footer-info {
            margin-bottom: 8px;
            display: inline-block;
            margin-right: 15px;
        }
        .highlight {
            color: #e74c3c;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <div class="invoice-container">
        <div class="header">
            <div class="title">未来之窗粮油蔬果批发销售单</div>
        </div>
        
        <div class="info-row">
            <div class="info-item"><strong>客户：</strong>北京土家菜馆</div>
            <div class="info-item"><strong>销售日期：</strong>2025-09-07</div>
        </div>
        
        <table>
            <tr>
                <th>编号</th>
                <th>产品</th>
                <th>规格型号</th>
                <th>单位</th>
                <th>总数量</th>
                <th>单价(元)</th>
                <th>金额(元)</th>
                <th>备注</th>
            </tr>
            <tr>
                <td>1</td>
                <td>华瑞高筋小麦粉</td>
                <td>25Kg</td>
                <td>袋</td>
                <td>45.00</td>
                <td>82.50</td>
                <td>3712.50</td>
                <td>优质面粉</td>
            </tr>
            <tr>
                <td>2</td>
                <td>碱(红三角)</td>
                <td>40kg</td>
                <td>袋</td>
                <td>5.00</td>
                <td>128.00</td>
                <td>640.00</td>
                <td>食品级</td>
            </tr>
            <tr>
                <td>3</td>
                <td>鲜鸡蛋</td>
                <td>1*360</td>
                <td>箱</td>
                <td>8.00</td>
                <td>118.50</td>
                <td>948.00</td>
                <td>当日鲜蛋</td>
            </tr>
            <tr>
                <td>4</td>
                <td>华瑞高筋饺皮粉</td>
                <td>25Kg</td>
                <td>袋</td>
                <td>15.00</td>
                <td>86.80</td>
                <td>1302.00</td>
                <td>专用粉</td>
            </tr>
            <tr>
                <td>5</td>
                <td>精品大米</td>
                <td>50Kg</td>
                <td>袋</td>
                <td>10.00</td>
                <td>156.30</td>
                <td>1563.00</td>
                <td>优质籼米</td>
            </tr>
            <tr class="total-row">
                <td colspan="4">合计金额大写： 捌仟壹佰陆拾伍元伍角整</td>
                <td>83.00</td>
                <td></td>
                <td class="highlight">8165.50</td>
                <td></td>
            </tr>
        </table>
        
        <div class="footer">
            <div class="footer-info"><strong>订货电话:</strong>1xxxxxxxxx</div>
            <div class="footer-info"><strong>地址:</strong>东方仙盟天机城A108</div>
            <div class="footer-info"><strong>服务承诺：</strong>品质保证，当日送达，不满意包退换</div>
            <div class="footer-info">收货人签字：___________</div>
        </div>
        
        <!-- 二维码和文字放在底部右侧 -->
        <div class="qr-code">
            <img style="width:100%;" src="">
        </div>
        <div class="qr-text">扫码付款</div>
    </div>
</body>
</html>
